package com.yango.staService;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author Li.Ding.yin
 * @create 2021年08月05日8:28-星期四
 * @role 统计分析微服务启动类
 */
@SpringBootApplication
@MapperScan("com.yango.staService.mapper")
@ComponentScan(basePackages = {"com.yango"})
@EnableDiscoveryClient//开启服务注册
@EnableFeignClients//开启服务发现
@EnableScheduling//开启定时任务
public class StaApplication {
    public static void main(String[] args) {
        SpringApplication.run(StaApplication.class, args);
    }
}
